package com.suyuan.entity;

import java.util.ArrayList;
import java.util.List;

public class TransitInfoExample {
    protected String orderByClause;

    protected boolean distinct;

    protected List<Criteria> oredCriteria;

    public TransitInfoExample() {
        oredCriteria = new ArrayList<Criteria>();
    }

    public void setOrderByClause(String orderByClause) {
        this.orderByClause = orderByClause;
    }

    public String getOrderByClause() {
        return orderByClause;
    }

    public void setDistinct(boolean distinct) {
        this.distinct = distinct;
    }

    public boolean isDistinct() {
        return distinct;
    }

    public List<Criteria> getOredCriteria() {
        return oredCriteria;
    }

    public void or(Criteria criteria) {
        oredCriteria.add(criteria);
    }

    public Criteria or() {
        Criteria criteria = createCriteriaInternal();
        oredCriteria.add(criteria);
        return criteria;
    }

    public Criteria createCriteria() {
        Criteria criteria = createCriteriaInternal();
        if (oredCriteria.size() == 0) {
            oredCriteria.add(criteria);
        }
        return criteria;
    }

    protected Criteria createCriteriaInternal() {
        Criteria criteria = new Criteria();
        return criteria;
    }

    public void clear() {
        oredCriteria.clear();
        orderByClause = null;
        distinct = false;
    }

    protected abstract static class GeneratedCriteria {
        protected List<Criterion> criteria;

        protected GeneratedCriteria() {
            super();
            criteria = new ArrayList<Criterion>();
        }

        public boolean isValid() {
            return criteria.size() > 0;
        }

        public List<Criterion> getAllCriteria() {
            return criteria;
        }

        public List<Criterion> getCriteria() {
            return criteria;
        }

        protected void addCriterion(String condition) {
            if (condition == null) {
                throw new RuntimeException("Value for condition cannot be null");
            }
            criteria.add(new Criterion(condition));
        }

        protected void addCriterion(String condition, Object value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value));
        }

        protected void addCriterion(String condition, Object value1, Object value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value1, value2));
        }

        public Criteria andGidIsNull() {
            addCriterion("GID is null");
            return (Criteria) this;
        }

        public Criteria andGidIsNotNull() {
            addCriterion("GID is not null");
            return (Criteria) this;
        }

        public Criteria andGidEqualTo(Integer value) {
            addCriterion("GID =", value, "gid");
            return (Criteria) this;
        }

        public Criteria andGidNotEqualTo(Integer value) {
            addCriterion("GID <>", value, "gid");
            return (Criteria) this;
        }

        public Criteria andGidGreaterThan(Integer value) {
            addCriterion("GID >", value, "gid");
            return (Criteria) this;
        }

        public Criteria andGidGreaterThanOrEqualTo(Integer value) {
            addCriterion("GID >=", value, "gid");
            return (Criteria) this;
        }

        public Criteria andGidLessThan(Integer value) {
            addCriterion("GID <", value, "gid");
            return (Criteria) this;
        }

        public Criteria andGidLessThanOrEqualTo(Integer value) {
            addCriterion("GID <=", value, "gid");
            return (Criteria) this;
        }

        public Criteria andGidIn(List<Integer> values) {
            addCriterion("GID in", values, "gid");
            return (Criteria) this;
        }

        public Criteria andGidNotIn(List<Integer> values) {
            addCriterion("GID not in", values, "gid");
            return (Criteria) this;
        }

        public Criteria andGidBetween(Integer value1, Integer value2) {
            addCriterion("GID between", value1, value2, "gid");
            return (Criteria) this;
        }

        public Criteria andGidNotBetween(Integer value1, Integer value2) {
            addCriterion("GID not between", value1, value2, "gid");
            return (Criteria) this;
        }

        public Criteria andTransitbatchidIsNull() {
            addCriterion("TransitBatchID is null");
            return (Criteria) this;
        }

        public Criteria andTransitbatchidIsNotNull() {
            addCriterion("TransitBatchID is not null");
            return (Criteria) this;
        }

        public Criteria andTransitbatchidEqualTo(Integer value) {
            addCriterion("TransitBatchID =", value, "transitbatchid");
            return (Criteria) this;
        }

        public Criteria andTransitbatchidNotEqualTo(Integer value) {
            addCriterion("TransitBatchID <>", value, "transitbatchid");
            return (Criteria) this;
        }

        public Criteria andTransitbatchidGreaterThan(Integer value) {
            addCriterion("TransitBatchID >", value, "transitbatchid");
            return (Criteria) this;
        }

        public Criteria andTransitbatchidGreaterThanOrEqualTo(Integer value) {
            addCriterion("TransitBatchID >=", value, "transitbatchid");
            return (Criteria) this;
        }

        public Criteria andTransitbatchidLessThan(Integer value) {
            addCriterion("TransitBatchID <", value, "transitbatchid");
            return (Criteria) this;
        }

        public Criteria andTransitbatchidLessThanOrEqualTo(Integer value) {
            addCriterion("TransitBatchID <=", value, "transitbatchid");
            return (Criteria) this;
        }

        public Criteria andTransitbatchidIn(List<Integer> values) {
            addCriterion("TransitBatchID in", values, "transitbatchid");
            return (Criteria) this;
        }

        public Criteria andTransitbatchidNotIn(List<Integer> values) {
            addCriterion("TransitBatchID not in", values, "transitbatchid");
            return (Criteria) this;
        }

        public Criteria andTransitbatchidBetween(Integer value1, Integer value2) {
            addCriterion("TransitBatchID between", value1, value2, "transitbatchid");
            return (Criteria) this;
        }

        public Criteria andTransitbatchidNotBetween(Integer value1, Integer value2) {
            addCriterion("TransitBatchID not between", value1, value2, "transitbatchid");
            return (Criteria) this;
        }

        public Criteria andAnimalidIsNull() {
            addCriterion("AnimalID is null");
            return (Criteria) this;
        }

        public Criteria andAnimalidIsNotNull() {
            addCriterion("AnimalID is not null");
            return (Criteria) this;
        }

        public Criteria andAnimalidEqualTo(Integer value) {
            addCriterion("AnimalID =", value, "animalid");
            return (Criteria) this;
        }

        public Criteria andAnimalidNotEqualTo(Integer value) {
            addCriterion("AnimalID <>", value, "animalid");
            return (Criteria) this;
        }

        public Criteria andAnimalidGreaterThan(Integer value) {
            addCriterion("AnimalID >", value, "animalid");
            return (Criteria) this;
        }

        public Criteria andAnimalidGreaterThanOrEqualTo(Integer value) {
            addCriterion("AnimalID >=", value, "animalid");
            return (Criteria) this;
        }

        public Criteria andAnimalidLessThan(Integer value) {
            addCriterion("AnimalID <", value, "animalid");
            return (Criteria) this;
        }

        public Criteria andAnimalidLessThanOrEqualTo(Integer value) {
            addCriterion("AnimalID <=", value, "animalid");
            return (Criteria) this;
        }

        public Criteria andAnimalidIn(List<Integer> values) {
            addCriterion("AnimalID in", values, "animalid");
            return (Criteria) this;
        }

        public Criteria andAnimalidNotIn(List<Integer> values) {
            addCriterion("AnimalID not in", values, "animalid");
            return (Criteria) this;
        }

        public Criteria andAnimalidBetween(Integer value1, Integer value2) {
            addCriterion("AnimalID between", value1, value2, "animalid");
            return (Criteria) this;
        }

        public Criteria andAnimalidNotBetween(Integer value1, Integer value2) {
            addCriterion("AnimalID not between", value1, value2, "animalid");
            return (Criteria) this;
        }

        public Criteria andProductidIsNull() {
            addCriterion("ProductID is null");
            return (Criteria) this;
        }

        public Criteria andProductidIsNotNull() {
            addCriterion("ProductID is not null");
            return (Criteria) this;
        }

        public Criteria andProductidEqualTo(Integer value) {
            addCriterion("ProductID =", value, "productid");
            return (Criteria) this;
        }

        public Criteria andProductidNotEqualTo(Integer value) {
            addCriterion("ProductID <>", value, "productid");
            return (Criteria) this;
        }

        public Criteria andProductidGreaterThan(Integer value) {
            addCriterion("ProductID >", value, "productid");
            return (Criteria) this;
        }

        public Criteria andProductidGreaterThanOrEqualTo(Integer value) {
            addCriterion("ProductID >=", value, "productid");
            return (Criteria) this;
        }

        public Criteria andProductidLessThan(Integer value) {
            addCriterion("ProductID <", value, "productid");
            return (Criteria) this;
        }

        public Criteria andProductidLessThanOrEqualTo(Integer value) {
            addCriterion("ProductID <=", value, "productid");
            return (Criteria) this;
        }

        public Criteria andProductidIn(List<Integer> values) {
            addCriterion("ProductID in", values, "productid");
            return (Criteria) this;
        }

        public Criteria andProductidNotIn(List<Integer> values) {
            addCriterion("ProductID not in", values, "productid");
            return (Criteria) this;
        }

        public Criteria andProductidBetween(Integer value1, Integer value2) {
            addCriterion("ProductID between", value1, value2, "productid");
            return (Criteria) this;
        }

        public Criteria andProductidNotBetween(Integer value1, Integer value2) {
            addCriterion("ProductID not between", value1, value2, "productid");
            return (Criteria) this;
        }

        public Criteria andSensorldIsNull() {
            addCriterion("SensorlD is null");
            return (Criteria) this;
        }

        public Criteria andSensorldIsNotNull() {
            addCriterion("SensorlD is not null");
            return (Criteria) this;
        }

        public Criteria andSensorldEqualTo(Integer value) {
            addCriterion("SensorlD =", value, "sensorld");
            return (Criteria) this;
        }

        public Criteria andSensorldNotEqualTo(Integer value) {
            addCriterion("SensorlD <>", value, "sensorld");
            return (Criteria) this;
        }

        public Criteria andSensorldGreaterThan(Integer value) {
            addCriterion("SensorlD >", value, "sensorld");
            return (Criteria) this;
        }

        public Criteria andSensorldGreaterThanOrEqualTo(Integer value) {
            addCriterion("SensorlD >=", value, "sensorld");
            return (Criteria) this;
        }

        public Criteria andSensorldLessThan(Integer value) {
            addCriterion("SensorlD <", value, "sensorld");
            return (Criteria) this;
        }

        public Criteria andSensorldLessThanOrEqualTo(Integer value) {
            addCriterion("SensorlD <=", value, "sensorld");
            return (Criteria) this;
        }

        public Criteria andSensorldIn(List<Integer> values) {
            addCriterion("SensorlD in", values, "sensorld");
            return (Criteria) this;
        }

        public Criteria andSensorldNotIn(List<Integer> values) {
            addCriterion("SensorlD not in", values, "sensorld");
            return (Criteria) this;
        }

        public Criteria andSensorldBetween(Integer value1, Integer value2) {
            addCriterion("SensorlD between", value1, value2, "sensorld");
            return (Criteria) this;
        }

        public Criteria andSensorldNotBetween(Integer value1, Integer value2) {
            addCriterion("SensorlD not between", value1, value2, "sensorld");
            return (Criteria) this;
        }

        public Criteria andSensorcodeIsNull() {
            addCriterion("SensorCode is null");
            return (Criteria) this;
        }

        public Criteria andSensorcodeIsNotNull() {
            addCriterion("SensorCode is not null");
            return (Criteria) this;
        }

        public Criteria andSensorcodeEqualTo(String value) {
            addCriterion("SensorCode =", value, "sensorcode");
            return (Criteria) this;
        }

        public Criteria andSensorcodeNotEqualTo(String value) {
            addCriterion("SensorCode <>", value, "sensorcode");
            return (Criteria) this;
        }

        public Criteria andSensorcodeGreaterThan(String value) {
            addCriterion("SensorCode >", value, "sensorcode");
            return (Criteria) this;
        }

        public Criteria andSensorcodeGreaterThanOrEqualTo(String value) {
            addCriterion("SensorCode >=", value, "sensorcode");
            return (Criteria) this;
        }

        public Criteria andSensorcodeLessThan(String value) {
            addCriterion("SensorCode <", value, "sensorcode");
            return (Criteria) this;
        }

        public Criteria andSensorcodeLessThanOrEqualTo(String value) {
            addCriterion("SensorCode <=", value, "sensorcode");
            return (Criteria) this;
        }

        public Criteria andSensorcodeLike(String value) {
            addCriterion("SensorCode like", value, "sensorcode");
            return (Criteria) this;
        }

        public Criteria andSensorcodeNotLike(String value) {
            addCriterion("SensorCode not like", value, "sensorcode");
            return (Criteria) this;
        }

        public Criteria andSensorcodeIn(List<String> values) {
            addCriterion("SensorCode in", values, "sensorcode");
            return (Criteria) this;
        }

        public Criteria andSensorcodeNotIn(List<String> values) {
            addCriterion("SensorCode not in", values, "sensorcode");
            return (Criteria) this;
        }

        public Criteria andSensorcodeBetween(String value1, String value2) {
            addCriterion("SensorCode between", value1, value2, "sensorcode");
            return (Criteria) this;
        }

        public Criteria andSensorcodeNotBetween(String value1, String value2) {
            addCriterion("SensorCode not between", value1, value2, "sensorcode");
            return (Criteria) this;
        }

        public Criteria andTransittypeIsNull() {
            addCriterion("TransitType is null");
            return (Criteria) this;
        }

        public Criteria andTransittypeIsNotNull() {
            addCriterion("TransitType is not null");
            return (Criteria) this;
        }

        public Criteria andTransittypeEqualTo(String value) {
            addCriterion("TransitType =", value, "transittype");
            return (Criteria) this;
        }

        public Criteria andTransittypeNotEqualTo(String value) {
            addCriterion("TransitType <>", value, "transittype");
            return (Criteria) this;
        }

        public Criteria andTransittypeGreaterThan(String value) {
            addCriterion("TransitType >", value, "transittype");
            return (Criteria) this;
        }

        public Criteria andTransittypeGreaterThanOrEqualTo(String value) {
            addCriterion("TransitType >=", value, "transittype");
            return (Criteria) this;
        }

        public Criteria andTransittypeLessThan(String value) {
            addCriterion("TransitType <", value, "transittype");
            return (Criteria) this;
        }

        public Criteria andTransittypeLessThanOrEqualTo(String value) {
            addCriterion("TransitType <=", value, "transittype");
            return (Criteria) this;
        }

        public Criteria andTransittypeLike(String value) {
            addCriterion("TransitType like", value, "transittype");
            return (Criteria) this;
        }

        public Criteria andTransittypeNotLike(String value) {
            addCriterion("TransitType not like", value, "transittype");
            return (Criteria) this;
        }

        public Criteria andTransittypeIn(List<String> values) {
            addCriterion("TransitType in", values, "transittype");
            return (Criteria) this;
        }

        public Criteria andTransittypeNotIn(List<String> values) {
            addCriterion("TransitType not in", values, "transittype");
            return (Criteria) this;
        }

        public Criteria andTransittypeBetween(String value1, String value2) {
            addCriterion("TransitType between", value1, value2, "transittype");
            return (Criteria) this;
        }

        public Criteria andTransittypeNotBetween(String value1, String value2) {
            addCriterion("TransitType not between", value1, value2, "transittype");
            return (Criteria) this;
        }

        public Criteria andInspectresultIsNull() {
            addCriterion("InspectResult is null");
            return (Criteria) this;
        }

        public Criteria andInspectresultIsNotNull() {
            addCriterion("InspectResult is not null");
            return (Criteria) this;
        }

        public Criteria andInspectresultEqualTo(String value) {
            addCriterion("InspectResult =", value, "inspectresult");
            return (Criteria) this;
        }

        public Criteria andInspectresultNotEqualTo(String value) {
            addCriterion("InspectResult <>", value, "inspectresult");
            return (Criteria) this;
        }

        public Criteria andInspectresultGreaterThan(String value) {
            addCriterion("InspectResult >", value, "inspectresult");
            return (Criteria) this;
        }

        public Criteria andInspectresultGreaterThanOrEqualTo(String value) {
            addCriterion("InspectResult >=", value, "inspectresult");
            return (Criteria) this;
        }

        public Criteria andInspectresultLessThan(String value) {
            addCriterion("InspectResult <", value, "inspectresult");
            return (Criteria) this;
        }

        public Criteria andInspectresultLessThanOrEqualTo(String value) {
            addCriterion("InspectResult <=", value, "inspectresult");
            return (Criteria) this;
        }

        public Criteria andInspectresultLike(String value) {
            addCriterion("InspectResult like", value, "inspectresult");
            return (Criteria) this;
        }

        public Criteria andInspectresultNotLike(String value) {
            addCriterion("InspectResult not like", value, "inspectresult");
            return (Criteria) this;
        }

        public Criteria andInspectresultIn(List<String> values) {
            addCriterion("InspectResult in", values, "inspectresult");
            return (Criteria) this;
        }

        public Criteria andInspectresultNotIn(List<String> values) {
            addCriterion("InspectResult not in", values, "inspectresult");
            return (Criteria) this;
        }

        public Criteria andInspectresultBetween(String value1, String value2) {
            addCriterion("InspectResult between", value1, value2, "inspectresult");
            return (Criteria) this;
        }

        public Criteria andInspectresultNotBetween(String value1, String value2) {
            addCriterion("InspectResult not between", value1, value2, "inspectresult");
            return (Criteria) this;
        }

        public Criteria andInspectdetailIsNull() {
            addCriterion("InspectDetail is null");
            return (Criteria) this;
        }

        public Criteria andInspectdetailIsNotNull() {
            addCriterion("InspectDetail is not null");
            return (Criteria) this;
        }

        public Criteria andInspectdetailEqualTo(String value) {
            addCriterion("InspectDetail =", value, "inspectdetail");
            return (Criteria) this;
        }

        public Criteria andInspectdetailNotEqualTo(String value) {
            addCriterion("InspectDetail <>", value, "inspectdetail");
            return (Criteria) this;
        }

        public Criteria andInspectdetailGreaterThan(String value) {
            addCriterion("InspectDetail >", value, "inspectdetail");
            return (Criteria) this;
        }

        public Criteria andInspectdetailGreaterThanOrEqualTo(String value) {
            addCriterion("InspectDetail >=", value, "inspectdetail");
            return (Criteria) this;
        }

        public Criteria andInspectdetailLessThan(String value) {
            addCriterion("InspectDetail <", value, "inspectdetail");
            return (Criteria) this;
        }

        public Criteria andInspectdetailLessThanOrEqualTo(String value) {
            addCriterion("InspectDetail <=", value, "inspectdetail");
            return (Criteria) this;
        }

        public Criteria andInspectdetailLike(String value) {
            addCriterion("InspectDetail like", value, "inspectdetail");
            return (Criteria) this;
        }

        public Criteria andInspectdetailNotLike(String value) {
            addCriterion("InspectDetail not like", value, "inspectdetail");
            return (Criteria) this;
        }

        public Criteria andInspectdetailIn(List<String> values) {
            addCriterion("InspectDetail in", values, "inspectdetail");
            return (Criteria) this;
        }

        public Criteria andInspectdetailNotIn(List<String> values) {
            addCriterion("InspectDetail not in", values, "inspectdetail");
            return (Criteria) this;
        }

        public Criteria andInspectdetailBetween(String value1, String value2) {
            addCriterion("InspectDetail between", value1, value2, "inspectdetail");
            return (Criteria) this;
        }

        public Criteria andInspectdetailNotBetween(String value1, String value2) {
            addCriterion("InspectDetail not between", value1, value2, "inspectdetail");
            return (Criteria) this;
        }
    }

    public static class Criteria extends GeneratedCriteria {

        protected Criteria() {
            super();
        }
    }

    public static class Criterion {
        private String condition;

        private Object value;

        private Object secondValue;

        private boolean noValue;

        private boolean singleValue;

        private boolean betweenValue;

        private boolean listValue;

        private String typeHandler;

        public String getCondition() {
            return condition;
        }

        public Object getValue() {
            return value;
        }

        public Object getSecondValue() {
            return secondValue;
        }

        public boolean isNoValue() {
            return noValue;
        }

        public boolean isSingleValue() {
            return singleValue;
        }

        public boolean isBetweenValue() {
            return betweenValue;
        }

        public boolean isListValue() {
            return listValue;
        }

        public String getTypeHandler() {
            return typeHandler;
        }

        protected Criterion(String condition) {
            super();
            this.condition = condition;
            this.typeHandler = null;
            this.noValue = true;
        }

        protected Criterion(String condition, Object value, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.typeHandler = typeHandler;
            if (value instanceof List<?>) {
                this.listValue = true;
            } else {
                this.singleValue = true;
            }
        }

        protected Criterion(String condition, Object value) {
            this(condition, value, null);
        }

        protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.secondValue = secondValue;
            this.typeHandler = typeHandler;
            this.betweenValue = true;
        }

        protected Criterion(String condition, Object value, Object secondValue) {
            this(condition, value, secondValue, null);
        }
    }
}